<?
/**
 * Error
 * 
 * @package  iforum.common  
 * @author   iCer <iCer@justdn.com>
 * @version  $Id: IforumError.php,v 1.1 2005/04/06 04:07:55 icer Exp $
 */
 class IforumError
 {
 	/**
 	 * @param $message 
 	 */
 	function stop($message)
 	{
 		$GLOBALS['iforum']['error']['message'] = $message;
 	}
 	
 	function haveError()
 	{
 		if (isset($GLOBALS['iforum']['error']))
 		{
 			return true;
 		}
 		else 
 		{
 			return false;
 		}
 	}
 	
 	function getErrorInfo()
 	{
 		return $GLOBALS['iforum']['error'];
 	} 	
 }


?>